package com.design.observer;

import com.design.observer.service.NewWeatherData;
import com.design.observer.service.impl.NewCurrentConditionDisplay;
import com.design.observer.service.impl.NewStatisticsDisplay;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2018/9/10
 * @Description
 */
public class NewWeatherStation {


    public static void main(String[] args) {
        NewWeatherData weatherData = new NewWeatherData();
        NewCurrentConditionDisplay newCurrentConditionDisplay = new NewCurrentConditionDisplay(weatherData);
        NewStatisticsDisplay statisticsDisplay = new NewStatisticsDisplay(weatherData);

        weatherData.setMeasurements(80,65,30.4f);
        weatherData.setMeasurements(82,70,29.2f);
        weatherData.setMeasurements(78,90,29.2f);

    }
}
